/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hephantan;

/**
 *
 * @author DIVID
 */
/*
 * o change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 *
 * @author DIVID
 */
public class TCPEchoClient {

    public static void main(String[] args) {
        try {
            Socket s = new Socket("localhost", 2014);
//            InputStream is = s.getInputStream();
//            OutputStream os = s.getOutputStream();
            PrintWriter out = new PrintWriter(s.getOutputStream(), true);
            BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
            String str = "@$00||000|103|Client|Send|0|74$$update chi set tienchi=500000 where chiid='6'@$";
            out.println(str);
            s.close();
        } catch (IOException e) {
            System.out.println("ERROR: " + e);
        }
    }
}

